import './App.scss'
import Login from '@/pages/Login'
import Layout from '@/pages/Layout'
import NotFound from '@/pages/NotFound'
import { AuthRoute } from '@/components/AuthRoute'
import { BrowserRouter as Router, Route, Switch, Redirect } from 'react-router-dom'
function App() {
  return (
    <Router>
      <div className='app'>
        <Switch>
          <Route exact path="/" render={() => <Redirect to="/home" />} ></Route>
          <AuthRoute path="/home" component={Layout} />
          <Route path="/login" component={Login} />
          <Route>
            <NotFound />
          </Route>
        </Switch>
      </div>
    </Router >
  )
}
export default App
